﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/Administrador.Master" AutoEventWireup="true" CodeBehind="nuevoLibro.aspx.cs" Inherits="WebTienda.contentpages.autor.listaLibros" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <h3><b>Nuevo Libro</b></h3>
            <p>
                <asp:Label ID="lbMensaje" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
            </p>
            <table>
                <tr>
                    <td>Título:</td>
                    <td><asp:TextBox ID="txtTitulo" runat="server" MaxLength="100" Width="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>ISBN:</td>
                    <td><asp:TextBox ID="txtISBN" runat="server" MaxLength="100" ></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Editorial:</td>
                    <td><asp:TextBox ID="txtEditorial" runat="server"  MaxLength="100" Width="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Número de Páginas:</td>
                    <td><asp:TextBox ID="txtNumPaginas" runat="server" MaxLength="5"  ></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Resumen:</td>
                    <td><asp:TextBox ID="txtResumen" runat="server" TextMode="MultiLine" 
                            Width="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>URL Imagen:</td>
                    <td><asp:TextBox ID="txtImagen" runat="server" Width="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Precio:</td>
                    <td><asp:TextBox ID="txtPrecio" runat="server" Width="100px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Cantidad Disponible:</td>
                    <td><asp:TextBox ID="txtCantidad" runat="server" Width="100px"></asp:TextBox></td>
                </tr>
                
                <tr>
                    <td>Categoría:</td>
                    <td> <asp:DropDownList ID="ddlCategoria" runat="server" 
                            onselectedindexchanged="ddlCategoria_SelectedIndexChanged" AutoPostBack="true">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td>Subcategoría:</td>
                    <td> <asp:DropDownList ID="ddlSubcategoria" runat="server">
                        <asp:ListItem>Seleccione</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td>Autor:</td>
                    <td> <asp:DropDownList ID="ddlAutor" runat="server"  AutoPostBack="true" >
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="center">
                        <asp:Button ID="btnGuardar" runat="server" onclick="btnGuardar_Click" Text="Guardar" />
                    &nbsp;<asp:Button ID="btnNuevo" runat="server" onclick="btnNuevo_Click" 
                        Text="Nuevo" />
                    </td>
                </tr>
            </table>

            
                


             
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
